package net.zoneland.knowledge.service;

import javax.servlet.http.HttpServletRequest;

import net.zoneland.knowledge.model.LoginUserPojo;

/**
 * 认证相关.
 *
 * @author: bcc
 *     2022/3/7
 */
public interface AuthService {

    /**
     * 获取当前登录用户信息
     * @param request
     * @return
     */
    LoginUserPojo getLoginUser(final HttpServletRequest request) throws Exception;

    /**
     * 是否模拟用户，即不需要登录
     * @return
     */
    boolean isMock();
    
    String getUserId(final HttpServletRequest request);
}
